package vista.interfaces;

public class EventDispatcher {

	public ReceiveEventListener listener;
	
	public EventDispatcher setReceiveEventListener(ReceiveEventListener listener) {
		this.listener = listener;
		return this;
	}
	
	public void dispatchEvent(Object objects[], int code) {
		if(listener != null)
			listener.receiveEvent(objects, code);
	}
	
}
